<template>
	<!-- 兑换结果 -->
	<view class="content">
		<view class="head-result">
			<view class="icon">
				<!-- <text class="iconfont icon-success"></text> -->
				<u-icon name="checkmark-circle-fill" color="#28AB45" size="70"></u-icon>
			</view>
			<view class="title">
				<text>优惠券兑换成功</text>
			</view>
			<view class="describe">
				<text>优惠券有效期：</text>
				<text class="ac">2020.2.2-2020.4.4</text>
			</view>
		</view>
		<view class="back-btn">
			<view class="btn-bg" @click="onBackBtn(0)">回到首页</view>
			<view class="btn-br" @click="onBackBtn(1)">邮币兑换</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		mounted() {

		},

		methods: {
			onBackBtn(type){
				switch (type){
					case 0:
						uni.switchTab({
							url: '/pages/home/index'
						})
						break;
					case 1:
						uni.redirectTo({
							url: '/pages/postMoney/postMoney'
						})
						break;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: #f6f6f6;
	}
	.head-result {
		width: 100%;
		height: 400rpx;
		background-color: #ffffff;
		.icon {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 200rpx;
			text {
				font-size: 120rpx;
				color: #22aa44;
			}
		}
		.title {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 60rpx;
			text {
				font-size: 32rpx;
				font-weight: bold;
				color: #222222;
			}
		}
		.describe {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 60rpx;
			text {
				font-size: 26rpx;
				color: #959595;
			}
			.ac{
				color: $base;
			}
		}
	}
	.back-btn{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100rpx;
		.btn-bg{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 240rpx;
			height: 60rpx;
			font-size: 26rpx;
			color: #FFFFFF;
			background-color: #28AAA9;
			border-radius: 60rpx;
			margin-right: 20rpx;
			box-shadow: 0 4rpx 10rpx #28AAA9;
		}
		.btn-br{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 240rpx;
			height: 60rpx;
			font-size: 26rpx;
			color: #28AAA9;
			border: 2rpx solid #28AAA9;
			border-radius: 60rpx;
			margin-left: 20rpx;
			box-shadow: 0 4rpx 10rpx #28AAA9;
		}
	}

</style>
